package com.jp.refreshlocalcachedemo.service;

import com.jp.refreshlocalcacheclient.annotation.RefreshLocalCache;
import org.springframework.stereotype.Service;

/**
 * @Author: jipeng
 * @Description:
 * @Date: Created in 2020/5/19 14:17
 */
@Service
@RefreshLocalCache
public class ServiceB {

    @RefreshLocalCache("cacheKey1")
    public void test1(){
        System.out.println("同步 cacheKey1");
    }

    @RefreshLocalCache("cacheKey2")
    public void test2(){
        System.out.println("同步 cacheKey2");
    }
}
